package br.com.localfloripa.entities;

public enum Plano {
		
	LATAO(50),
	COBRE(75),
	PRATA(100),
	OURO(150),
	PLATINA(300),
	DIAMANTE(500);

	private final Integer value;
	
	private Plano(Integer value) {
		this.value = value;
	}
	
	public Integer value() {  
	    return this.value;  
	}  
	
	public static Plano fromName(String text) {
	    if (text != null) {
	      for (Plano limite : Plano.values()) {
	        if (text.equalsIgnoreCase(limite.name())) {
	          return limite;
	        }
	      }
	    }
	    return null;
    }	

}
